<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::get('/', function()
{
	return View::make('hello');
});
//用户登陆注册
Route::group(array('prefix' => 'auth'), function () {
$Auth = 'AuthController@';
# 登录
Route::get('login', array('as' => 'login' , 'uses' => $Auth.'getLogin'));
Route::post('login', $Auth.'postLogin');
# 退出
Route::get('logout', array('as' => 'logout', 'uses' => $Auth.'getLogout'));
# 注册
Route::get( 'register', array('as' => 'register' , 'uses' => $Auth.'getRegister'));
Route::post('register', $Auth.'postRegister');
});
